package com.desksoft.ecommerce.entity.mall.dto;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.desksoft.ecommerce.base.Entity;

public class CarmodelExample implements Entity{
    /**
	 * 
	 */
	private static final long serialVersionUID = 719857134799634676L;

	protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CarmodelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidIsNull() {
            addCriterion("CarTypeTimeID is null");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidIsNotNull() {
            addCriterion("CarTypeTimeID is not null");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidEqualTo(Integer value) {
            addCriterion("CarTypeTimeID =", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidNotEqualTo(Integer value) {
            addCriterion("CarTypeTimeID <>", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidGreaterThan(Integer value) {
            addCriterion("CarTypeTimeID >", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CarTypeTimeID >=", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidLessThan(Integer value) {
            addCriterion("CarTypeTimeID <", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidLessThanOrEqualTo(Integer value) {
            addCriterion("CarTypeTimeID <=", value, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidIn(List<Integer> values) {
            addCriterion("CarTypeTimeID in", values, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidNotIn(List<Integer> values) {
            addCriterion("CarTypeTimeID not in", values, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidBetween(Integer value1, Integer value2) {
            addCriterion("CarTypeTimeID between", value1, value2, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCartypetimeidNotBetween(Integer value1, Integer value2) {
            addCriterion("CarTypeTimeID not between", value1, value2, "cartypetimeid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidIsNull() {
            addCriterion("CarStylingID is null");
            return (Criteria) this;
        }

        public Criteria andCarstylingidIsNotNull() {
            addCriterion("CarStylingID is not null");
            return (Criteria) this;
        }

        public Criteria andCarstylingidEqualTo(Integer value) {
            addCriterion("CarStylingID =", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidNotEqualTo(Integer value) {
            addCriterion("CarStylingID <>", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidGreaterThan(Integer value) {
            addCriterion("CarStylingID >", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidGreaterThanOrEqualTo(Integer value) {
            addCriterion("CarStylingID >=", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidLessThan(Integer value) {
            addCriterion("CarStylingID <", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidLessThanOrEqualTo(Integer value) {
            addCriterion("CarStylingID <=", value, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidIn(List<Integer> values) {
            addCriterion("CarStylingID in", values, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidNotIn(List<Integer> values) {
            addCriterion("CarStylingID not in", values, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidBetween(Integer value1, Integer value2) {
            addCriterion("CarStylingID between", value1, value2, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andCarstylingidNotBetween(Integer value1, Integer value2) {
            addCriterion("CarStylingID not between", value1, value2, "carstylingid");
            return (Criteria) this;
        }

        public Criteria andHolesIsNull() {
            addCriterion("Holes is null");
            return (Criteria) this;
        }

        public Criteria andHolesIsNotNull() {
            addCriterion("Holes is not null");
            return (Criteria) this;
        }

        public Criteria andHolesEqualTo(Integer value) {
            addCriterion("Holes =", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesNotEqualTo(Integer value) {
            addCriterion("Holes <>", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesGreaterThan(Integer value) {
            addCriterion("Holes >", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesGreaterThanOrEqualTo(Integer value) {
            addCriterion("Holes >=", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesLessThan(Integer value) {
            addCriterion("Holes <", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesLessThanOrEqualTo(Integer value) {
            addCriterion("Holes <=", value, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesIn(List<Integer> values) {
            addCriterion("Holes in", values, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesNotIn(List<Integer> values) {
            addCriterion("Holes not in", values, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesBetween(Integer value1, Integer value2) {
            addCriterion("Holes between", value1, value2, "holes");
            return (Criteria) this;
        }

        public Criteria andHolesNotBetween(Integer value1, Integer value2) {
            addCriterion("Holes not between", value1, value2, "holes");
            return (Criteria) this;
        }

        public Criteria andPitchrowIsNull() {
            addCriterion("PitchRow is null");
            return (Criteria) this;
        }

        public Criteria andPitchrowIsNotNull() {
            addCriterion("PitchRow is not null");
            return (Criteria) this;
        }

        public Criteria andPitchrowEqualTo(BigDecimal value) {
            addCriterion("PitchRow =", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowNotEqualTo(BigDecimal value) {
            addCriterion("PitchRow <>", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowGreaterThan(BigDecimal value) {
            addCriterion("PitchRow >", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("PitchRow >=", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowLessThan(BigDecimal value) {
            addCriterion("PitchRow <", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowLessThanOrEqualTo(BigDecimal value) {
            addCriterion("PitchRow <=", value, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowIn(List<BigDecimal> values) {
            addCriterion("PitchRow in", values, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowNotIn(List<BigDecimal> values) {
            addCriterion("PitchRow not in", values, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PitchRow between", value1, value2, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andPitchrowNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("PitchRow not between", value1, value2, "pitchrow");
            return (Criteria) this;
        }

        public Criteria andCentreboreIsNull() {
            addCriterion("CentreBore is null");
            return (Criteria) this;
        }

        public Criteria andCentreboreIsNotNull() {
            addCriterion("CentreBore is not null");
            return (Criteria) this;
        }

        public Criteria andCentreboreEqualTo(BigDecimal value) {
            addCriterion("CentreBore =", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreNotEqualTo(BigDecimal value) {
            addCriterion("CentreBore <>", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreGreaterThan(BigDecimal value) {
            addCriterion("CentreBore >", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("CentreBore >=", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreLessThan(BigDecimal value) {
            addCriterion("CentreBore <", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreLessThanOrEqualTo(BigDecimal value) {
            addCriterion("CentreBore <=", value, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreIn(List<BigDecimal> values) {
            addCriterion("CentreBore in", values, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreNotIn(List<BigDecimal> values) {
            addCriterion("CentreBore not in", values, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CentreBore between", value1, value2, "centrebore");
            return (Criteria) this;
        }

        public Criteria andCentreboreNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("CentreBore not between", value1, value2, "centrebore");
            return (Criteria) this;
        }

        public Criteria andBrandidIsNull() {
            addCriterion("BrandID is null");
            return (Criteria) this;
        }

        public Criteria andBrandidIsNotNull() {
            addCriterion("BrandID is not null");
            return (Criteria) this;
        }

        public Criteria andBrandidEqualTo(Integer value) {
            addCriterion("BrandID =", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotEqualTo(Integer value) {
            addCriterion("BrandID <>", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidGreaterThan(Integer value) {
            addCriterion("BrandID >", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidGreaterThanOrEqualTo(Integer value) {
            addCriterion("BrandID >=", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidLessThan(Integer value) {
            addCriterion("BrandID <", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidLessThanOrEqualTo(Integer value) {
            addCriterion("BrandID <=", value, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidIn(List<Integer> values) {
            addCriterion("BrandID in", values, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotIn(List<Integer> values) {
            addCriterion("BrandID not in", values, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidBetween(Integer value1, Integer value2) {
            addCriterion("BrandID between", value1, value2, "brandid");
            return (Criteria) this;
        }

        public Criteria andBrandidNotBetween(Integer value1, Integer value2) {
            addCriterion("BrandID not between", value1, value2, "brandid");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNull() {
            addCriterion("CreateDate is null");
            return (Criteria) this;
        }

        public Criteria andCreatedateIsNotNull() {
            addCriterion("CreateDate is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedateEqualTo(Date value) {
            addCriterion("CreateDate =", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotEqualTo(Date value) {
            addCriterion("CreateDate <>", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThan(Date value) {
            addCriterion("CreateDate >", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateDate >=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThan(Date value) {
            addCriterion("CreateDate <", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateLessThanOrEqualTo(Date value) {
            addCriterion("CreateDate <=", value, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateIn(List<Date> values) {
            addCriterion("CreateDate in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotIn(List<Date> values) {
            addCriterion("CreateDate not in", values, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateBetween(Date value1, Date value2) {
            addCriterion("CreateDate between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andCreatedateNotBetween(Date value1, Date value2) {
            addCriterion("CreateDate not between", value1, value2, "createdate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIsNull() {
            addCriterion("UpdateDate is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIsNotNull() {
            addCriterion("UpdateDate is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedateEqualTo(Date value) {
            addCriterion("UpdateDate =", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotEqualTo(Date value) {
            addCriterion("UpdateDate <>", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateGreaterThan(Date value) {
            addCriterion("UpdateDate >", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateDate >=", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateLessThan(Date value) {
            addCriterion("UpdateDate <", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateLessThanOrEqualTo(Date value) {
            addCriterion("UpdateDate <=", value, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateIn(List<Date> values) {
            addCriterion("UpdateDate in", values, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotIn(List<Date> values) {
            addCriterion("UpdateDate not in", values, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateBetween(Date value1, Date value2) {
            addCriterion("UpdateDate between", value1, value2, "updatedate");
            return (Criteria) this;
        }

        public Criteria andUpdatedateNotBetween(Date value1, Date value2) {
            addCriterion("UpdateDate not between", value1, value2, "updatedate");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNull() {
            addCriterion("SiteId is null");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNotNull() {
            addCriterion("SiteId is not null");
            return (Criteria) this;
        }

        public Criteria andSiteidEqualTo(Integer value) {
            addCriterion("SiteId =", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotEqualTo(Integer value) {
            addCriterion("SiteId <>", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThan(Integer value) {
            addCriterion("SiteId >", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThanOrEqualTo(Integer value) {
            addCriterion("SiteId >=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThan(Integer value) {
            addCriterion("SiteId <", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThanOrEqualTo(Integer value) {
            addCriterion("SiteId <=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidIn(List<Integer> values) {
            addCriterion("SiteId in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotIn(List<Integer> values) {
            addCriterion("SiteId not in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidBetween(Integer value1, Integer value2) {
            addCriterion("SiteId between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotBetween(Integer value1, Integer value2) {
            addCriterion("SiteId not between", value1, value2, "siteid");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}